10 int color
[MAX
], d
[MAX
], low
[MAX
], pre
[MAX
], used
[MAX
];
52 if(fl
==2 && used
[u
]==0)
55 strcpy(AP
[apN
], city
[u
]);
60 else if(low
[i
]>=d
[u
] && used
[u
]==0)
63 strcpy(AP
[apN
], city
[u
]);
66 else if(low
[i
]<low
[u
])
71 else if(color
[i
]==GRAY
)
76 else if(color
[i
]==BLACK
)
92 if(strcmp(city
[i
], s
)==0)
99 //freopen("in.txt", "r", stdin);
100 int test
=0, i
, j
, x
, y
,m
, v
;
101 char s1
[33], s2
[33], tmp
[33];
103 while(scanf("%d", &n
)==1 && n
)
106 scanf("%s", city
[i
]);
112 scanf("%s %s", &s1
, &s2
);
124 printf("City map #%d: %d camera(s) found\n", test
+1, apN
);
127 for(j
=i
+1; j
<apN
; j
++)
128 if(strcmp(AP
[i
], AP
[j
])>0)
131 strcpy(AP
[i
], AP
[j
]);
135 printf("%s\n", AP
[i
]);